#include <head.h>
int main(int argc, char const *argv[])
{
    int fd=open("my_HQYJ",O_WRONLY);
    // OPEN_ERR(fd);
    printf("写入端口\n");
    char buf_write[128];
    while(1)
    {
     printf("写入\n");
     memset(buf_write,0,sizeof(buf_write));
     scanf("%s",buf_write);
     write(fd,buf_write,sizeof(buf_write));
     if(!strcmp(buf_write,"quit"))
     {
        break;
        printf("写入端口退出\n");
     }
    }    
    return 0;
}
